/*
 * LED.c
 *
 * Created: 9/04/2012 9:34:29 PM
 *  Author: Richard
 */ 

#include "DIO.h"
#include "DEB.h"
#include "TIMER.h"

void LED__vTimerTestCallback( void );

void LED_vInit( void )
{	
	TIMER_boStartTimer( TIMER_nenTestTimer, 1000, TIMER_nenFreeRunning, &LED__vTimerTestCallback );
}	

void LED_vMain10ms( void )
{
	DIO_tenLogicLevel enLogicLevel;
	
	enLogicLevel = DEB_enGetState( DEB_nenCurrent );
	//DIO_vSetOutputLevel( DIO_nenLED3, enLogicLevel );
}	

void LED_vMain1s( void )
{
	DIO_vToggleOutputLevel( DIO_nenLED1 );
}

void LED__vTimerTestCallback( void )
{
	DIO_vToggleOutputLevel( DIO_nenLED2 );
}		
